package com.qf.mybatis925.mapper;

import com.qf.mybatis925.entity.User;
import com.qf.mybatis925.entity.VO.UserVO;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;

public interface UserMapper {
    User findUserById(Integer id);
    List<User> findAll();

    User findUserByLogin(User  user);

    List<User> search(HashMap<String, String> map);

    int delete(User id);

    void updateById(User user);

    List<User> searchV2(HashMap<String, String> map);

    void updateById2(User user);

    List<UserVO> findUserOrdersById(Integer id);
}
